package com.szsfm.vehiclemanagement.view;

import android.app.Activity;
import android.app.AlertDialog;
import android.content.DialogInterface;

/**
 * Created by zhoubigbo on 2017/11/22.
 */
public class RulesDialog {

    public static CharSequence[] items = {"违章停车", "违章开车","乱鸣喇叭"};

    public static void show(Activity acty, DialogInterface.OnClickListener l){
        AlertDialog.Builder builder = new AlertDialog.Builder(acty);
        builder.setItems(items, l);
        builder.setTitle("违章类型");
        AlertDialog dialog = builder.create();
        dialog.show();
    }

}
